﻿using System;

namespace AbstractFactoryPattern.Abstractions
{
    public abstract class Pizza//抽象披萨
    {
        public string Name { get; set; }
        
        public IDough Dough { get; protected set; }//生面团
        public ISauce Sauce { get; protected set; }//酱油
        public ICheese Cheese { get; protected set; }//奶酪
        public IClams Clams { get; protected set; }//蛤蚌

        public abstract void Prepare();

        public void Bake()
        {
            Console.WriteLine("烘烤25分钟");
        }

        public void Cut()
        {
            Console.WriteLine("把披萨切成小块");
        }

        public void Box()
        {
            Console.WriteLine("把披萨放在官方的披萨店盒子里......");
        }
    }
}
